import request from '@/utils/request'

//获取商品品牌信息
export const reqTradeMark = (page, limit) => {
    return request({
        url: `admin/product/baseTrademark/${page}/${limit}`
    })
}

//添加品牌信息
export const reqAddTrademark = (tradeMark) => {
    return request({ url: 'admin/product/baseTrademark/save', method: 'post', data: tradeMark })
}


//修改商品信息
export const reqUpdateTrademark = (tradeMark) => {
    return request({ url: 'admin/product/baseTrademark/update', method: 'put', data: tradeMark })
}

//删除品牌信息
export const reqDeleteTrademark = (id) => {
    return request({ url: `admin/product/baseTrademark/remove/${id}`, method: 'DELETE', })
}